package com.xuecheng.content.api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/*Freemarker入门
* */
@Controller
public class FreemarkerController {
@GetMapping("/testfreemaker")
    public ModelAndView test(){
    ModelAndView modelAndView = new ModelAndView();
    modelAndView.addObject("name","小明");
    modelAndView.setViewName("test");
    return modelAndView;
  }

}
